<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="pragma" content="no-cache">
<title>天小天个人网-留言管理</title>
<link rel="shortcut icon " type="images/x-png" href="../../public/pic/icon.png">
<link href="../css/comment.css" type="text/css" rel="stylesheet">
<link href="../../public/bs/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<script src="../../public/bs/js/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="../../public/bs/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../js/comment.js" type="text/javascript"></script>
</head>

<body>
<div class="container all1">
  <div class="table-responsive">
    <table class="table">
      <thead>
        <tr>
          <th>留言ID</th>
          <th>用户ID</th>    
          <th>用户姓名</th>
          <th>留言时间</th>
          <th>留言IP</th>
          <th>留言内容</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <?php foreach($commentdata as $v){?>  
        <tr>
          <th scope="row"><?php echo $v['commentid']?></th>
          <td><?php echo $v['userid']?></td>
          <td><?php echo $v['commentusername']?></td>
          <td><?php echo $v['commenttime']?></td>
          <td><?php echo $v['commentip']?></td>
          <td><?php echo $v['commenttext']?></td>
          <td><a href="commentdel.php?path=<?php echo $v['commentid']?>">删除</a></td>
        </tr>
        <?php }?>
      </tbody>
    </table>
  </div>
</div>
</body>
</html>